const express = require('express')
const router = express.Router()
const {goodslist,goodsdatail,list} = require('../controller/goods')
 
// 获取所有商品数据接口
router.get('/api/list/:page',goodslist)

// 获取列表页商品数据接口
router.get('/api/goodslist/:page/:pagesize',list)

// 根据id获取商品详情数据接口
router.get('/api/detail/:id',goodsdatail)

module.exports = router